package com.dubbo.service;

import com.dubbo.UserService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class OrderService {
    @DubboReference
    private UserService userService;

    public String create() {
        String userName = userService.getUser("1");
        System.out.println("创建订单");
        return userName + " succeeded in creating order";
    }
}
